package com.zengjianjun.oss.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import software.amazon.awssdk.regions.Region;

/**
 * 亚马逊 S3桶
 *
 * @author zengjianjun
 */
@Data
@Component
@ConfigurationProperties(prefix = "oss.amazon")
public class AmazonS3Properties {


    /**
     * 地区
     * {@link software.amazon.awssdk.regions.Region}
     */
    private Region region;
    /**
     * access key
     */
    private String accessKeyId;
    /**
     * access key secret
     */
    private String accessKeySecret;
    /**
     * 是否开启代理
     */
    private Boolean proxy;
    /**
     * 代理地址+端口号
     * eg.
     * http://127.0.0.1:10809
     */
    private String proxyEndpoint;
}
